package com.idak.jaxb.library;

import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;

public class Dvd {
	private String id;
	private String name;
	private String content;
	private List<Author> authors;
	
	@XmlAttribute(name="id")
	public String getId() {return id;}
	
	@XmlElement(name="NAME")
	public String getName() {return name;}
	
	@XmlElement(name="CONTENT")
	public String getContent() {return content;}
	
	@XmlElementWrapper(name="AUTHORS")
	@XmlElement(name="AUTHOR")
	public List<Author> getAuthors() {return authors;}
	
	public void setId(String id) {this.id = id;}
	public void setName(String name) {this.name = name;}
	public void setContent(String content) {this.content = content;}
	public void setAuthors(List<Author> authors) {this.authors = authors;}
}
